package top.hzy520.role.service;

import top.hzy520.role.dto.PermissionOutPutDto;
import top.hzy520.role.dto.RoleInputDto;
import top.hzy520.role.entity.Role;

import java.util.List;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 19:35 2018/9/27
 */
public interface RoleService {
    int selectAllRoleCount();

    List<RoleInputDto> selectAllRole(int offset, int limit);

    Role selectRoleById(Long roleId);

    List<PermissionOutPutDto> treePermissionList(Long roleId);

    void roleEdit(List<PermissionOutPutDto> permissionOutPutDtoList, Long roleId);

    List<Role> selectRole();

    void updateRole(Role role);

    void roleAdd(Role role);

    void insertRole(Long roleId, Long id);

    void updateUserRole(Long roleId, Long id);
}
